package com.atguigu.cart.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName:configuration
 * Package:com.atguigu.cart.config
 * Description:
 *
 * @Author 应永豪
 * @Create 2024/4/22 22:23
 * @Version 1.0
 */
@Configuration
public class CartConfiguration {
    @Bean
    public MessageConverter messageConverter() {

        return new Jackson2JsonMessageConverter();
    }
}
